package com.woniuxy.yogaapp.service;

import java.util.List;

import com.woniuxy.yogaapp.pojo.Chat;
import com.woniuxy.yogaapp.pojo.ClubCoach;
import com.woniuxy.yogaapp.pojo.Coach;

/*
 *@author：源
 *@date:15:53:39
 *@descripion
 */

import com.woniuxy.yogaapp.dto.Check;

public interface CoachService {

	// 接受一些插入信息并更改订单状态
	public String updateOrderCheck(Check c);

	// 拒绝更新订单状态
	public int updateOrder(Check c);

	public String postOrder(Check check);

	public List<Coach> findAllCoach();

	public Coach findByCid(int cid);

	/**
	 * 根据uid查询该用户 是不是新用户 返回不为空代表老用户
	 * 
	 * @param coach
	 * @return
	 */
	public Coach findCoachByUid(Coach coach);

	/**
	 * 老用户 提交修改信息
	 * 
	 * @param coach
	 * @return
	 */
	public int updateCoachInfo(Coach coach);

	/**
	 * 新用户 添加用户信息
	 * 
	 * @param coach
	 * @return
	 */
	public String addCoachInfo(Coach coach);

	/**
	 * 瑜伽教练 添加资格认证信息待认证
	 * 
	 * @param coach
	 * @return
	 */
	public String approvePower(Coach coach);


    public String repostOrder(Check check);


	// 查询未读消息
	public List<Coach> selectApprove();

	public String agreeCoach(Chat chat);

	public String disagreeCoach(Chat chat);
/**
 * 教练请求加入某场馆
 * @param clubCoach
 * @return
 */
	public String applyForClub(ClubCoach clubCoach);

	public Coach findOneCoach(int cid);

	public List<String> showClubName(int uid);

}
